<template>
  <div>
    <div class="w-100 p-3 border-bottom">修改密码</div>
    <div>
      <div class="hb_changewd w-50 m-auto mt-5 text-center">
        <div class="demo-input-suffix d-flex">
          <div class="h5 hb_zdy_oldpwd w-50 text-end">旧密码：</div>

          <el-input placeholder="请输入旧密码" v-model="input1"> </el-input>
        </div>
        <div class="demo-input-suffix d-flex mt-3">
          <div class="h5 hb_zdy_oldpwd w-50 text-end">新密码：</div>

          <el-input placeholder="请输入新密码" v-model="input2"> </el-input>
        </div>
        <div class="demo-input-suffix d-flex mt-3">
          <div class="h5 hb_zdy_oldpwd w-50 text-end">确认新密码：</div>

          <el-input placeholder="请确认新密码" v-model="input3"> </el-input>
        </div>
        <span
          class="
            d-block
            bg-info
            w-25
            m-auto
            mt-4
            fs-4
            text-center
            rounded-3
            text-white
          "
          @click="pushPwd"
          >确定</span
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input1: "",
      input2: "",
      input3: "",
    };
  },
  methods: {
    pushPwd() {
      let oldpwd = this.input1;
      let newpwd = this.input2;
      let respwd = this.input3;
      let tname = this.$store.state.isname;
      let parmay = `uname=${oldpwd}`;
      let url = ``;
      if (oldpwd == newpwd) {
        this.axios.post(url, parmay).then((res) => {});
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.hb_changepwd {
  // margin-top: 20px;
  margin: 0 auto;
}
</style>